package microservices.spring_cloud_server.vo;

import java.util.List;

public class PermissionVO {
	private String id;

	private String roleId;

	private String permissionId;

	private String permissionGroup;

	private String permissionName;

	private String permissionDesc;

	private String title;

	private Boolean checked = false;

	private String selected;

	List<PermissionVO> children;

	public String getId() {
		return id;
	}

	public void setId(String id) {
		this.id = id;
	}

	public String getPermissionGroup() {
		return permissionGroup;
	}

	public void setPermissionGroup(String permissionGroup) {
		this.permissionGroup = permissionGroup;
	}

	public String getPermissionName() {
		return permissionName;
	}

	public void setPermissionName(String permissionName) {
		this.permissionName = permissionName;
	}

	public String getPermissionDesc() {
		return permissionDesc;
	}

	public void setPermissionDesc(String permissionDesc) {
		this.permissionDesc = permissionDesc;
	}

	public List<PermissionVO> getChildren() {
		return children;
	}

	public void setChildren(List<PermissionVO> children) {
		this.children = children;
	}

	public String getTitle() {
		return title;
	}

	public void setTitle(String title) {
		this.title = title;
	}

	public Boolean getChecked() {
		return checked;
	}

	public void setChecked(String checked) {
		if ("true".endsWith(checked)) {
			this.checked = true;
		} else {
			this.checked = false;
		}
	}

	public String getSelected() {
		return selected;
	}

	public void setSelected(String selected) {
		this.selected = selected;
	}

	public String getRoleId() {
		return roleId;
	}

	public void setRoleId(String roleId) {
		this.roleId = roleId;
	}

	public String getPermissionId() {
		return permissionId;
	}

	public void setPermissionId(String permissionId) {
		this.permissionId = permissionId;
	}

}
